#coding=utf-8
import datetime

def str2date(s):
    y,m,d = map(int, s.split('-'))
    return datetime.date(y,m,d)
